<template>
	<view class="container">
		<view class="status-box bg-box">
			<view class="s-text">
				<text>已取消</text>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
			<view class="tip">
				<text>你已取消订单：</text>取消原因/超时未支付
			</view>
		</view>
		
		<view class="o-box bg-box fuwu">
			<view class="title">
				<text>服务人员</text>
			</view>
			<view class="user">
				<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
				<view class="right">
					<view class="name">
						<text>李四</text>为您服务
					</view>
					<view class="pf">
						服务评分：<text>95.0</text>
					</view>
				</view>
			</view>
		</view>
		
		<view class="o-box bg-box u-img">
			<view class="title">
				<text>服务上传</text>
			</view>
			
			<view class="before">
				<view class="text">
					服务前:
				</view>
				<view class="img-list">
					<image :src="$img_path('/mall/5.png')" v-for="item in 5" mode="aspectFill"></image>
				</view>
				<view class="time">
					<text>上传时间：</text>2024-05-20  21:30
				</view>
			</view>
			
			<view class="before">
				<view class="text">
					服务后:
				</view>
				<view class="img-list">
					<image :src="$img_path('/mall/5.png')" v-for="item in 5" mode="aspectFill"></image>
				</view>
				<view class="time">
					<text>上传时间：</text>2024-05-20  21:30
				</view>
			</view>
		</view>
		
		<view class="bg-box o-box">
			<view class="title">
				<text>预约信息</text>
			</view>
			
			<view class="info-box">
				<view class="i-item">
					<text>预约服务：</text>家政服务名称
				</view>
				<view class="i-item">
					<text>服务数量：</text>X1
				</view>
				<view class="i-item">
					<text>服务时间：</text>2024-0
				</view>
				<view class="i-item">
					<text>用户信息：</text>张三 12345678910
				</view>
				<view class="i-item">
					<text>服务地址：</text>郑州市XXX区详情地址详情地址详情地址详情地址
				</view>
			</view>
			<view class="info-box border">
				<view class="i-item">
					<text>服务金额：</text>100.00元
				</view>
				<view class="i-item">
					<text>夜间费：</text>+50.00元
				</view>
				<view class="i-item red">
					<text>优惠券：</text>-20.00元
				</view>
				<view class="i-item">
					<text>实付金额：</text>130.00元
				</view>
			</view>
		</view>
		
		<view class="bg-box o-box">
			<view class="title">
				<text>订单信息</text>
			</view>
			
			<view class="info-box">
				<view class="i-item">
					<text>订单编号：</text>4545464644545646 | <text class="copy" @click="clickCopy('464484651112244874898')">复制</text>
				</view>
				<view class="i-item">
					<text>下单时间：</text>2024-04-16  09:00
				</view>
				<view class="i-item">
					<text>取消时间：</text>2024-04-06  09:00
				</view>
				
				<view class="i-item">
					<text>付款方式：</text>余额支付
				</view>
				
				<view class="i-item">
					<text>订单备注：</text>内容内容内容内容内容内容内容
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import {
		getCopy
	} from '@/utils/uni_api.js'
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			clickCopy(text) {
				getCopy(text)
			},
		}
	}
</script>

<style lang="scss" scoped>
.container{
	padding: 0 22rpx;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	.bg-box{
		background: #FFFFFF;
		border-radius: 20rpx;
		box-sizing: border-box;
		margin-top: 20rpx;
	}
	.status-box{
		padding: 40rpx 28rpx 38rpx;
		box-sizing: border-box;
		.s-text{
			display: flex;
			align-items: center;
			text{
				font-weight: bold;
				font-size: 36rpx;
				color: #000000;
				line-height: 50rpx;
			}
			image{
				width: 12rpx;
				height: 21rpx;
				margin-left: 20rpx;
			}
		}
		.tip{
			font-weight: 400;
			font-size: 30rpx;
			color: #333333;
			line-height: 42rpx;
			margin-top: 16rpx;
			text{
				color: #8B8B8B;
			}
		}
	}
	.fuwu{
		.user{
			display: flex;
			align-items: center;
			margin-top: 26rpx;
			padding-bottom: 26rpx;
			image{
				width: 116rpx;
				height: 116rpx;
				border-radius: 50%;
			}
			.right{
				padding-left: 20rpx;
				.name{
					font-weight: bold;
					font-size: 32rpx;
					color: #000000;
					line-height: 44rpx;
					text{
						margin-right: 20rpx;
					}
				}
				.pf{
					font-weight: 400;
					font-size: 28rpx;
					color: #464646;
					line-height: 40rpx;
					margin-top: 4rpx;
					text{
						color: #FFA33A;
					}
				}
			}
		}
	}
	
	.u-img{
		.before{
			padding-top: 20rpx;
			padding-bottom: 40rpx;
			.text{
				font-weight: 400;
				font-size: 30rpx;
				color: #333333;
				line-height: 42rpx;
			}
			.img-list{
				overflow-x: auto;
				margin-top: 20rpx;
				white-space: nowrap;
				image{
					display: inline-block;
					width: 180rpx;
					height: 180rpx;
					border-radius: 20rpx;
					margin-right: 20rpx;
				}
			}
			.time{
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
				text-align: right;
				margin-top: 20rpx;
			}
		}
	}
	
	.o-box{
		padding: 28rpx 20rpx 14rpx 24rpx;
		box-sizing: border-box;
		.title{
			padding-left: 16rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #000000;
			line-height: 50rpx;
			position: relative;
			&::before{
				content: '';
				width: 6rpx;
				height: 30rpx;
				background: #E72A2A;
				border-radius: 4rpx;
				position: absolute;
				left: 0;
				top: 50%;
				transform: translateY(-50%);
			}
		}
		.info-box{
			padding: 20rpx 0;
			&.border{
				border-top: 2rpx solid #EEEEEE;
			}
			.i-item{
				padding: 20rpx 0;
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
				&.red{
					color: #FF4A4A;
				}
				text{
					font-weight: 400;
					color: #000000;
				}
				.copy{
					font-weight: bold;
					font-size: 30rpx;
					color: #000000;
					line-height: 42rpx;
					padding-left: 10rpx;
				}
			}
		}
	}
}
</style>
